# coding=utf-8
def create_order_json(order, key_list=[]) :
    json = {}
    if "id" in key_list :
        json["id"] = order.id
    if "order_sn" in key_list :
        json["order_sn"] = order.order_sn
    if "total_price" in key_list :
        json["total_price"] = float(order.total_price)
    if "note" in key_list :
        json["note"] = order.note
    if "status" in key_list:
        json["status"] = order.status
    if "meal_number" in key_list :
        json["meal_number"] = order.meal_number
    if "created_time" in key_list :
        json["created_time"] = str(order.created_time)
    if "updated_time" in key_list :
        json["updated_time"] = str(order.updated_time)
    return json

